package com.shuatim.model.wechat;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 用户
 *
 * @author yhy
 * @date 2018年10月1日09:33:54
 */
@TableName("user_info")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 7309334027989234242L;
    /**
     * 用户ID
     */
    @TableId
    private Long id;
    /**
     * 用户名
     */
    private String address;
    @TableField("nickname")
    private String nickName;
    private String company;
    private String contact;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 密码
     */
    @JSONField(serialize = false)
    private String password;
    private String loginErrorTimes;
    private Integer sex;
    private String email;
    private String avatar;
    private String province;
    private String country;
    private String city;
    private String description;
    private Integer accountType;
    private String thirdPartyUserId;
    private String status;
    private String activationCode;

    /**
     * 创建时间
     */
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
